package com.baigu.order.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BgOrderDetail implements Serializable {
    /**
     * 订单详情ID
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 订单ID
     *
     * @mbg.generated
     */
    private String orderId;

    /**
     * 产品ID
     *
     * @mbg.generated
     */
    private String productId;

    /**
     * 产品名称（冗余）
     *
     * @mbg.generated
     */
    private String productName;

    /**
     * 产品skuID
     *
     * @mbg.generated
     */
    private String productSkuId;

    /**
     * 产品sku扩展名称（冗余）
     *
     * @mbg.generated
     */
    private String productSkuName;

    /**
     * 销售总金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer saleTotalMoney;

    /**
     * 销售实际金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer saleActualMoney;

    /**
     * 销售优惠金额（单位：分）
     *
     * @mbg.generated
     */
    private Integer saleDiscountMoney;

    /**
     * 销售总数量
     *
     * @mbg.generated
     */
    private Integer saleTotalNum;

    /**
     * 删除标记（0:未删除，1:已删除）
     *
     * @mbg.generated
     */
    private Integer delFlag;

    /**
     * 创建人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建日期
     *
     * @mbg.generated
     */
    private Date createDate;

    /**
     * 最后修改人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String updateBy;

    /**
     * 最后修改日期
     *
     * @mbg.generated
     */
    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductSkuId() {
        return productSkuId;
    }

    public void setProductSkuId(String productSkuId) {
        this.productSkuId = productSkuId;
    }

    public String getProductSkuName() {
        return productSkuName;
    }

    public void setProductSkuName(String productSkuName) {
        this.productSkuName = productSkuName;
    }

    public Integer getSaleTotalMoney() {
        return saleTotalMoney;
    }

    public void setSaleTotalMoney(Integer saleTotalMoney) {
        this.saleTotalMoney = saleTotalMoney;
    }

    public Integer getSaleActualMoney() {
        return saleActualMoney;
    }

    public void setSaleActualMoney(Integer saleActualMoney) {
        this.saleActualMoney = saleActualMoney;
    }

    public Integer getSaleDiscountMoney() {
        return saleDiscountMoney;
    }

    public void setSaleDiscountMoney(Integer saleDiscountMoney) {
        this.saleDiscountMoney = saleDiscountMoney;
    }

    public Integer getSaleTotalNum() {
        return saleTotalNum;
    }

    public void setSaleTotalNum(Integer saleTotalNum) {
        this.saleTotalNum = saleTotalNum;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", productSkuId=").append(productSkuId);
        sb.append(", productSkuName=").append(productSkuName);
        sb.append(", saleTotalMoney=").append(saleTotalMoney);
        sb.append(", saleActualMoney=").append(saleActualMoney);
        sb.append(", saleDiscountMoney=").append(saleDiscountMoney);
        sb.append(", saleTotalNum=").append(saleTotalNum);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BgOrderDetail other = (BgOrderDetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getProductSkuId() == null ? other.getProductSkuId() == null : this.getProductSkuId().equals(other.getProductSkuId()))
            && (this.getProductSkuName() == null ? other.getProductSkuName() == null : this.getProductSkuName().equals(other.getProductSkuName()))
            && (this.getSaleTotalMoney() == null ? other.getSaleTotalMoney() == null : this.getSaleTotalMoney().equals(other.getSaleTotalMoney()))
            && (this.getSaleActualMoney() == null ? other.getSaleActualMoney() == null : this.getSaleActualMoney().equals(other.getSaleActualMoney()))
            && (this.getSaleDiscountMoney() == null ? other.getSaleDiscountMoney() == null : this.getSaleDiscountMoney().equals(other.getSaleDiscountMoney()))
            && (this.getSaleTotalNum() == null ? other.getSaleTotalNum() == null : this.getSaleTotalNum().equals(other.getSaleTotalNum()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getProductSkuId() == null) ? 0 : getProductSkuId().hashCode());
        result = prime * result + ((getProductSkuName() == null) ? 0 : getProductSkuName().hashCode());
        result = prime * result + ((getSaleTotalMoney() == null) ? 0 : getSaleTotalMoney().hashCode());
        result = prime * result + ((getSaleActualMoney() == null) ? 0 : getSaleActualMoney().hashCode());
        result = prime * result + ((getSaleDiscountMoney() == null) ? 0 : getSaleDiscountMoney().hashCode());
        result = prime * result + ((getSaleTotalNum() == null) ? 0 : getSaleTotalNum().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }
}